import instance from "@/utils/request";


// 获取试卷 exam/paper/list
export function getPaper(data,tokenInfo) {
    return instance.get(`/home/pageIsNotList?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,{
        headers:{
            "Authorization": 'Bearer ' + tokenInfo.token,
            "clientid": tokenInfo.clientid
        }
    })
}

// 获取试卷详情 /exam/paper/id
export function paperDetail(data) {
    return instance.get(`/exam/paper/${data}`)
}

// 试卷提交 评分 /api/question/scoring
export function scoring(data) {
    return instance.post(`/api/question/scoring`,data)
}
// 获取试卷 exam/paper/list
export function getpageIsListr(data,tokenInfo) {
    return instance.get(`/home/pageIsList?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,{
        headers:{
            "Authorization": 'Bearer ' + tokenInfo.token,
            "clientid": tokenInfo.clientid
        }
    })
}


// 获取试卷 exam/paper/list
export function answerPaper(data,tokenInfo) {
    return instance.get(`/home/answerPaper?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,{
        headers:{
            "Authorization": 'Bearer ' + tokenInfo.token,
            "clientid": tokenInfo.clientid
        }
    })
}
// /home/cultivateList
export function cultivateList(data,tokenInfo) {
    return instance.get(`/home/cultivateList?pageNum=${data.pageNum}&pageSize=${data.pageSize}`,{
        headers:{
            "Authorization": 'Bearer ' + tokenInfo.token,
            "clientid": tokenInfo.clientid
        }
    })
}
